package com.hxzy.shop.controller;

import com.hxzy.shop.entity.YxtCustomer;
import com.hxzy.shop.service.YxtCustomerService;
import com.hxzy.shop.vo.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 功能描述: 微信营销通
 *
 * @author tonneyyy
 */
@RestController
@Api(tags = "门店微信营销通管理")
@RequestMapping("/yxt")
public class YxtImController {

    @Autowired
    private YxtCustomerService yxtCustomerService;

    /**
     * 营销通客服列表
     */
    @ApiOperation(value = "获取客服地址列表")
    @GetMapping("/getTenantRedirectUrl")
    public Result<List<YxtCustomer>> getTenantRedirectUrl(){
        return Result.success(this.yxtCustomerService.getTenantRedirectUrl());
    }
}
